x86: mark the entire directmap NX
authorJan Beulich <jbeulich@suse.com>
Fri, 1 Sep 2017 09:07:31 +0000 (11:07 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 1 Sep 2017 09:07:31 +0000 (11:07 +0200)
commit20329d5ac2f62e89463d48991d18f071a530a292
treefa330348d570a58ad3944cbbfff881b49874e07d
parent39a2a62e5626327f141596ed3e78a55899437e11
x86: mark the entire directmap NX

There's no reason for the first Mb to be excluded here. Enforce the
restriction right in the top level page table entries.

Suggested-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/x86_64/mm.c